﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UserCenter.Models
{
    public class Member
    {
        public enum Status : byte
        {
            Enable = 1,
            Disable = 2
        }



        /// <summary>
        /// 会员ID
        /// </summary>
        public long MemberId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int MerchantId { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 头像URL
        /// </summary>
        public string AvatarUrl { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 最后登陆时间
        /// </summary>
        public DateTime LastLoginTime { get; set; }

        /// <summary>
        /// 登陆状态 1，可以 2，不可用 
        /// </summary>
        public Status  LoginStatus { get; set; }

        /// <summary>
        /// 登录错误连续次数
        /// </summary>
        public int LoginErrorCount { get; set; }

    }

}
